package com.pansoft.openplanet.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 交换记录列表Bean
 * Created by slp on 2018/4/27.
 */
public class ExchangeRecordBean implements Parcelable {
    private String exchangeId;
    private String exchangeCount;
    private String exchangeType;
    private String exchangeTime;

    public String getExchangeId() {
        return exchangeId == null ? "" : exchangeId;
    }

    public void setExchangeId(String exchangeId) {
        this.exchangeId = exchangeId;
    }

    public String getExchangeCount() {
        return exchangeCount == null ? "" : exchangeCount;
    }

    public void setExchangeCount(String exchangeCount) {
        this.exchangeCount = exchangeCount;
    }

    public String getExchangeType() {
        return exchangeType == null ? "" : exchangeType;
    }

    public void setExchangeType(String exchangeType) {
        this.exchangeType = exchangeType;
    }

    public String getExchangeTime() {
        return exchangeTime == null ? "" : exchangeTime;
    }

    public void setExchangeTime(String exchangeTime) {
        this.exchangeTime = exchangeTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.exchangeId);
        dest.writeString(this.exchangeCount);
        dest.writeString(this.exchangeType);
        dest.writeString(this.exchangeTime);
    }

    public ExchangeRecordBean() {
    }

    protected ExchangeRecordBean(Parcel in) {
        this.exchangeId = in.readString();
        this.exchangeCount = in.readString();
        this.exchangeType = in.readString();
        this.exchangeTime = in.readString();
    }

    public static final Creator<ExchangeRecordBean> CREATOR = new Creator<ExchangeRecordBean>() {
        @Override
        public ExchangeRecordBean createFromParcel(Parcel source) {
            return new ExchangeRecordBean(source);
        }

        @Override
        public ExchangeRecordBean[] newArray(int size) {
            return new ExchangeRecordBean[size];
        }
    };
}
